import { All, Controller } from '@nestjs/common';
import { IP, IsPublic } from '@app/common';

@Controller()
@IsPublic()
export class ProcessorController {
  @All()
  get(@IP() ip: string) {
    return {
      time: Date.now(),
      ip,
      pwd: process.cwd(),
    };
  }
}
